package com.zzw.hj21;

import java.util.Scanner;

/**
 * @Project: hw_java
 * @Description: 简单密码
 * @Author: zzw
 */
// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int[] index = {2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9};

        char[] input = in.nextLine().toCharArray();
        for (int i = 0; i < input.length; i++) {
            if (input[i] >= '0' && input[i] <= '9') {
                System.out.print(input[i]);
                continue;
            }

            if (input[i] >= 'a' && input[i] <= 'z') {
                System.out.print(index[input[i] - 'a']);
                continue;
            }

            if (input[i] >= 'A' && input[i] < 'Z') {
                System.out.print((char) (input[i] - 'A' + 'a' + 1));
                continue;
            }

            if (input[i] == 'Z') {
                System.out.print('a');
            }
        }
    }
}
